package com.hoshino.momochi.config.Trie;

import java.util.concurrent.ConcurrentHashMap;

public class TreeNode {
    // 标识 当前节点 是否 是一个“终止”节点 默认 false
    public boolean isWord;

    // 子节点
    public ConcurrentHashMap<Character, TreeNode> children;

    public TreeNode(boolean isWord) {
        this.isWord = isWord;
        this.children = new ConcurrentHashMap<>();
    }

    public TreeNode() {
        this(false);
    }
}
